package o;

import android.app.Activity;
import android.content.Context;
import com.huawei.appgallery.foundation.ui.framework.cardframe.bean.BaseCardBean;
import com.huawei.gamebox.service.common.cardkit.bean.BaseGsCardBean;
import com.huawei.gamebox.service.common.cardkit.bean.BaseGsCardBean.d;
import com.huawei.gamebox.service.common.uikit.protocol.CardListActivityProtocol;
import com.huawei.gamebox.service.common.uikit.protocol.CardListActivityProtocol.Request;

public class eyf extends eyg {
    protected String ˋ(BaseCardBean baseCardBean) {
        return baseCardBean.ॱॱ();
    }

    protected void ˏ(Context context, BaseCardBean baseCardBean, String str) {
        String ʽ;
        String ـॱ;
        d dVar = null;
        String ͺˏ = baseCardBean.ͺˏ();
        String ॱـ = baseCardBean.ॱـ();
        if (baseCardBean instanceof BaseGsCardBean) {
            BaseGsCardBean baseGsCardBean = (BaseGsCardBean) baseCardBean;
            ʽ = baseGsCardBean.ʽ();
            ـॱ = baseGsCardBean.ـॱ();
            dVar = baseGsCardBean.ˏॱ();
        } else {
            ـॱ = null;
            ʽ = null;
        }
        cjo cardListActivityProtocol = new CardListActivityProtocol();
        Request request = new Request();
        request.ˎ(str);
        request.ˋ(ʽ);
        request.ˏ(false);
        request.ˊ(false);
        request.ˊ(ͺˏ);
        request.ᐝ(ॱـ);
        request.ॱ(ـॱ);
        request.ʼ(baseCardBean.ˌॱ());
        if (dVar != null) {
            request.ॱ(dVar.ॱ());
            request.ˎ(dVar.ˋ());
            request.ˋ(dVar.ˏ());
            request.ˏ(dVar.ˎ());
        }
        cardListActivityProtocol.ˋ(request);
        cjm o_cjm = new cjm("cardlist_activity", cardListActivityProtocol);
        if (!(context instanceof Activity)) {
            o_cjm.ॱ().addFlags(268435456);
        }
        cjk.ˎ().ˋ(context, o_cjm);
    }
}
